﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Text;
using Trauberman.SOChat.StarLeaderboard.Data;
using Trauberman.SOChat.StarLeaderboard.Domain;

namespace Trauberman.SOChat.StarLeaderboard.Services
{
	public class ChatroomService : IChatroomService
	{
		private IDataContext _data;
		public ChatroomService(IDataContext data)
		{
			this._data = data;
		}

		public IQueryable<ChatRoom> GetChatRooms()
		{
			// get all chat rooms
			return _data.Rooms;
		}
	}
}
